package world.maps;

import world.objects.AnimatingBackgroundObjects;
import world.objects.NPC;

import javax.imageio.ImageIO;
import java.awt.*;
import java.io.File;
import java.net.URL;

/**
 * Created by IntelliJ IDEA.
 * User: Jake
 * Date: 19/12/11
 * Time: 18:13
 * To change this template use File | Settings | File Templates.
 */
public class StarterMap implements
        Map {
    public String getName() {
        return "Starter Map";  //To change body of implemented methods use File | Settings | File Templates.
    }

    public String getLocation() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public int getHeight() {
        return 0;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public int getWidth() {
        return 0;  //To change body of implemented methods use File | Settings | File Templates.
    }

    Image im = null;

    public Image getImage() {
        if (im != null)
            return im;
        try {
            im = ImageIO.read(new File("C:/Users/Jake/AppData/Roaming/redline/StarterMap.png"));
            System.out.println("Picture acquirred");
            return im;
        } catch (Exception e) {
            System.out.println("Failed getting picture");
            return null;
        }
    }

    public NPC[] getNPCs() {
        return new NPC[0];  //To change body of implemented methods use File | Settings | File Templates.
    }

    public AnimatingBackgroundObjects[] getAnimatingBackgroundObjects() {
        return new AnimatingBackgroundObjects[0];  //To change body of implemented methods use File | Settings | File Templates.
    }

    public Exits getExits() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

}
